home *** CD-ROM | disk | FTP | other *** search
/ QRZ! Ham Radio 8 / QRZ Ham Radio Callsign Database - Volume 8.iso / mac / files / t_sys5 / unixcpio.gz / unixnet.cpio / files.c < prev    next >
C/C++ Source or Header  |  1994-07-11  |  4KB  |  116 lines

  1. /* System-dependent definitions of various files, spool directories, etc */
  2.  
  3. #include "global.h"
  4. #include "config.h"
  5.  
  6. #if    (defined(__TURBOC__) || defined(LATTICE) || defined(MAC) || defined(ATARI_ST))
  7. /* These compilers require special open modes when reading binary files
  8.  * 
  9.  * "The single most brilliant design decision in all of UNIX was the
  10.  * choice of a SINGLE character as the end-of-line indicator" -- M. O'Dell
  11.  *
  12.  * "Whoever picked the end-of-line conventions for MS-DOS and the Macintosh
  13.  * should be shot!" -- P. Karn's corollary to O'Dells' declaration
  14.  *
  15.  * Index definitions for this array are in global.h
  16.  */
  17. char *binmode[] = {
  18.     "rb",    /* Read binary */
  19.     "wb",    /* Write binary */
  20.     "ab"    /* Append binary */
  21. };
  22. #else
  23. /* fopen modes for binary files under Aztec -- same as UNIX */
  24. char *binmode[] = {
  25.     "r",    /* Read */
  26.     "w",    /* Write */
  27.     "a"     /* Append */
  28. };
  29. #endif
  30.  
  31. #ifdef    ATARI_ST
  32. char *startup     = "\\net.rc";            /* Initialization file */
  33. char *userfile     = "\\ftpusers";        /* Authorized FTP users */
  34. char *hosts     = "\\hosts.net";        /* Unix style host table */
  35. char *mailspool = "\\spool\\mail";        /* Incoming mail */
  36. char *mailqdir     = "\\spool\\mqueue";        /* Outgoing mail spool */
  37. char *mailqueue = "\\spool\\mqueue\\*.wrk";    /* Outgoing mail work files */
  38. char *routeqdir = "\\spool\\rqueue";        /* Queue for router */
  39. char *alias     = "\\alias";            /* The alias file */
  40. #ifdef    _FINGER
  41. char *fingersuf = ".txt";        /* Text info for finger command */
  42. char *fingerpath = "\\finger\\";    /* Path to finger info files */
  43. #endif
  44. #endif
  45.  
  46. #ifdef    MSDOS || __TURBOC__
  47. char *startup = "/autoexec.net";    /* Initialization file */
  48. char *userfile = "/ftpusers";        /* Authorized FTP users and passwords */
  49. char *hosts = "/hosts.net";        /* Network host table */
  50. char *mailspool = "/spool/mail";    /* Incoming mail */
  51. char *mailqdir = "/spool/mqueue";    /* Outgoing mail spool */
  52. char *mailqueue = "/spool/mqueue/*.wrk";/* Outgoing mail work files */
  53. char *routeqdir = "/spool/rqueue";    /* queue for router */
  54. char *alias = "/alias";            /* the alias file */
  55. #ifdef _FINGER
  56. char *fingersuf = ".txt";        /* Text info for finger command */
  57. char *fingerpath = "/finger/";        /* Path to finger info files */
  58. #endif
  59. #endif
  60.  
  61. #ifdef    UNIX
  62. /*
  63.  * Base names for files -- environment variables NETHOME and NETSPOOL
  64.  * are used to specify the precise path.
  65.  */
  66. char *netexe = "net";        /* where the binary lives; for reset */
  67. char *startup = "startup.net";        /* Initialization file */
  68. char *config = "config.net";        /* Device configuration list */
  69. char *userfile = "ftpusers";
  70. char *hosts = "hosts.net";
  71. char *mailspool = "mail";
  72. char *mailqdir = "mqueue";
  73. char *mailqueue = "mqueue/*.wrk";
  74. char *routeqdir = "rqueue";        /* queue for router */
  75. char *alias = "aliases";            /* the alias file */
  76. #ifdef _FINGER
  77. char *fingersuf = ".txt";        /* Text info for finger command */
  78. char *fingerpath = "finger/";        /* Path to finger info files */
  79. #endif
  80. #endif
  81.  
  82. #ifdef    AMIGA
  83. char *startup = "TCPIP:net.start";
  84. char *config = "TCPIP:config.net";    /* Device configuration list */
  85. char *userfile = "TCPIP:ftpusers";
  86. char *hosts = "TCPIP:hosts.net";
  87. char *mailspool = "TCPIP:spool/mail";
  88. char *mailqdir = "TCPIP:spool/mqueue";
  89. char *mailqueue = "TCPIP:spool/mqueue/*.wrk";
  90. char *routeqdir = "TCPIP:spool/rqueue";        /* queue for router */
  91. char *alias = "TCPIP:alias";    /* the alias file */
  92. #ifdef _FINGER
  93. char *fingersuf = ".txt";        /* Text info for finger command */
  94. char *fingerpath = "TCPIP:finger/";    /* Path to finger info files */
  95. #endif
  96. #endif
  97.  
  98. #ifdef    MAC
  99. char *startup ="Mikes Hard Disk:net.start";
  100. char *config = "Mikes Hard Disk:config.net";    /* Device configuration list */
  101. char *userfile = "Mikes Hard Disk:ftpusers";
  102. char *hosts = "Mikes Hard Disk:hosts.net";
  103. char *mailspool = "Mikes Hard Disk:spool:mail:";
  104. char *mailqdir = "Mikes Hard Disk:spool:mqueue:";
  105. char *mailqueue = "Mikes Hard Disk:spool:mqueue:*.wrk";
  106. char *routeqdir = "Mikes Hard Disk:spool/rqueue:";    /* queue for router */
  107. char *alias = "Mikes Hard Disk:alias";    /* the alias file */
  108. #ifdef _FINGER
  109. /* is this for real? */
  110. char *fingersuf = ".txt";        /* Text info for finger command */
  111. char *fingerpath = "Mikes Hard Disk:finger/";    /* Path to finger info files */
  112. #endif
  113. #endif
  114.  
  115.  
  116.